package com.maze.game.model.base
{
	import flash.display.Sprite;
	import flash.geom.Point;
	
	public class Base extends Sprite
	{
		private var _row:uint;
		public function get row():uint { return _row; }
		public function set row(value:uint):void { _row = value; }

		private var _col:uint;
		public function get col():uint { return _col; }
		public function set col(value:uint):void { _col = value; }

		private var _baseWidth:uint;
		protected function set baseWidth(value:uint):void { _baseWidth = value; }
		protected function get baseWidth():uint { return _baseWidth; }
		
		private var _baseHeight:uint;
		protected function get baseHeight():uint { return _baseHeight; }
		protected function set baseHeight(value:uint):void { _baseHeight = value; }
		
		private var _type:uint;
		public function get type():uint { return _type; }
		public function set type(value:uint):void { _type = value; }
		
		private var _editable:Boolean;
		public function get editable():Boolean { return _editable; }
		public function set editable(value:Boolean):void { _editable = value; }

		public function Base(baseWidth:uint, baseHeight:uint, type:uint = BaseType.EMPTY)
		{
			super();
			this.baseWidth = baseWidth;
			this.baseHeight = baseHeight;
			this.type = type;
		}
		
		protected function drawBackground():void
		{
			graphics.clear();
			graphics.beginFill(0x999999);
			graphics.drawRect(0,0,baseWidth,baseHeight);
			graphics.endFill();
		}
	}
}